<style>

.infoboxans {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #fff;
    border-color: #d8d8d8 !important;
    border-image: none;
    border-radius: 0;
    border-style: dotted;
    border-width: 1px;
    box-shadow: none;
    color: #555;
    display: inline-block;
    height: 150px;
    margin: -1px 0 0 -1px;
    padding: 8px 3px 6px 9px;
    position: relative;
    text-align: left;
    vertical-align: middle;
    width: 210px;
}



.infoboxans .infobox-content {
    color: #555;
}

.infoboxans > .infobox-data {
    border: 0 none;
    display: inline-block;
    font-size: 13px;
    line-height: 21px;
    min-width: 130px;
    padding-left: 8px;
    position: relative;
    text-align: left;
    top: 0;
}

.infoboxans > .infobox-icon > [class*="icon-"]:before {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 100%;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    font-size: 24px;
    padding: 6px 0 7px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.14);
    width: 40px;
}

.infoboxans > .infobox-data > .infobox-data-number {
    display: block;
    font-size: 22px;
    margin: 2px 0 4px;
    position: relative;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

</style>

<div class="row">
    <br>    
    <label style="padding-left: 60px">Referral Link: <a href="http://fx-tradepoint.co.uk/?id=<?php echo $this->memberID; ?>">http://fx-tradepoint.co.uk/?id=<?php echo $this->memberID; ?></a></label>
    
    <div class="col-sm-10 infobox-container">
        
        <div class="infobox" id="infoboxans1">

            <div class="infobox-data">
                <span class="infobox-data-number"></span>
                <div class="infobox-content">
                    Welcome<br><?php echo $this->memberName; ?>                    

                </div>

            </div>
        </div>

        <div class="infobox infobox-green" id="infoboxans2">
            <div class="infobox-icon">
                <i class="icon-dollar"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->numBalanceTurnOver, 2, '.', ','); ?></span>
                <div class="infobox-content">Balance Turnover</div>
                <button class="btn btn-sm btn-success" type="button" onclick="location.href='/investment/returns'">
                View Returns                
                </button>
            </div>
            <!--div class="stat stat-success">8%</div-->
        </div>

        <div class="infobox infobox-orange" id="infoboxans3">
            <div class="infobox-icon">
                <i class="icon-money"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->numEarning, 2, '.', ',');?></span>
                <div class="infobox-content">Total Earnings</div>
            </div>
            <!--div class="stat stat-important">4%</div-->
        </div>

        <div class="infobox infobox-blue" id="infoboxans4">
            <div class="infobox-icon">
                <img src="/img/savings1.png" height="100px" width="210px">
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        
        <div class="infobox infobox-red">
         
            <div class="infobox-data">
                <span class="infobox-data-number"></span>
                <div class="infobox-content">Member ID<br><?php echo $this->memberID; ?></div>
            </div>
        </div>
        
        <div class="infobox infobox-green">
            <div class="infobox-icon">
                <i class="icon-group"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->numMember); ?></span>
                <div class="infobox-content">Total Teams</div>
            </div>
            <!--div class="stat stat-success">8%</div-->
        </div>

        <div class="infobox infobox-orange">
            <div class="infobox-icon">
                <i class="icon-shopping-cart"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo $this->numTrans;?></span>
                <div class="infobox-content">Total Transactions</div>
            </div>
            <!--div class="stat stat-important">4%</div-->
        </div>

        <div class="infobox infobox-blue" id="infoboxans5">
            <div class="infobox-icon">
                <img src="/img/savings2.png" height="66px" width="210px">
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        <div class="infobox infobox-green  ">
            
            <div class="infobox-data">
                <span class="infobox-data-number"></span>
                <div class="infobox-content">Account Created On:<br><?php echo $this->startDtm; ?></div>
            </div>
            <!--div class="stat stat-success">8%</div-->
        </div>

        <div class="infobox infobox-green">
            <div class="infobox-icon">
                <i class="icon-magic"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->totalInvest, 2, '.', ',');?></span>
                <div class="infobox-content">Total Investments</div>
            </div>
            <!--div class="stat stat-important">4%</div-->
        </div>

        <div class="infobox infobox-orange">
            <div class="infobox-icon">
                <i class="icon-gears"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->activeInvest, 2, '.', ','); ?></span>
                <div class="infobox-content">Active Investment</div>
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>
        
        <div class="infobox infobox-blue">
            <div class="infobox-icon">
                <i class="icon-time"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->activeInvest, 2, '.', ','); ?></span>
                <div class="infobox-content">Latest Investment</div>
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        <div class="infobox infobox-green  ">

            <div class="infobox-data">
                <span class="infobox-data-number"></span>
                <div class="infobox-content">Last Access:<br><?php echo $this->lastLogin; ?></div>
            </div>
            <!--div class="stat stat-success">8%</div-->
        </div>

        <div class="infobox infobox-green">
            <div class="infobox-icon">
                <i class="icon-exchange"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->totalWD, 2, '.', ','); ?></span>
                <div class="infobox-content">Total Withdrawn</div>
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        <div class="infobox infobox-orange">
            <div class="infobox-icon">
                <i class="icon-calendar"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->pendingWD, 2, '.', ','); ?></span>
                <div class="infobox-content">Pending Withdraw</div>
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        <div class="infobox infobox-blue">
            <div class="infobox-icon">
                <i class="icon-time"></i>
            </div>

            <div class="infobox-data">
                <span class="infobox-data-number"><?php echo number_format($this->latestWD, 2, '.', ','); ?></span>
                <div class="infobox-content">Latest Withdraw</div>
            </div>

            <!--div class="badge badge-success">
                +32%
                <i class="icon-arrow-up"></i>
            </div-->
        </div>

        <div class="space-6"></div>       
            
        <img src="/img/moneyboat.png">
        
    </div>
</div>
<div class="hr hr32 hr-dotted"></div>
<?php
    if ($this->numMember > 0){
?>

    <h4 class="lighter smaller">
    <i class="icon-user orange"></i>
    New Teams
    </h4>
    <div class="row">
        <div class="widget-body">
            <div class="widget-main padding-4">
                <div class="clearfix">
                    <?php
                    while ($this->newMembers->next()) {
                            $newMember = $this->newMembers->current();

                    ?>
                    <div class="itemdiv memberdiv">
                        <div class="user">
                            <img alt="Bob Doe's avatar" src="<?php echo $this->basePath()?>/assets/avatars/user.jpg" />
                        </div>

                        <div class="body">
                            <div class="name">
                                <a href="#"><?php echo $newMember['member_name']; ?></a>
                            </div>

                            <div class="time">
                                <i class="icon-time"></i>
                                <span class="green"><?php echo $newMember['start_dtm']; ?></span>
                            </div>
                        </div>
                    </div>
                    <?php
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
<?php }else{ ?>

    <h4 class="lighter smaller">
        <i class="icon-user orange"></i>
        No new member
    </h4>
<?php }?>

<script>

    document.getElementById("infoboxans1").style = "height: 100px";
    document.getElementById("infoboxans2").style = "height: 100px";
    document.getElementById("infoboxans3").style = "height: 100px";
    document.getElementById("infoboxans4").style = "height: 100px; padding: 0 0 0 0; border-width: 0px;";
    document.getElementById("infoboxans5").style = "padding: 0 0 0 0; border-width: 0px;";
    
</script>